package com.pn.service;

import com.pn.dto.AssignRoleDto;
import com.pn.entity.Result;
import com.pn.entity.User;
import com.pn.model.UserInfo;
import com.pn.page.Page;

import java.util.List;

public interface UserInfoService {

    public UserInfo queryUserInfoByCode(String userCode);

    //分页查询用户信息
    public Page queryUserByPage(Page page, User user) ;
    //添加用户信息
    Result saveUser(UserInfo userInfo);
    //修改用户状态
    Result setUserState(UserInfo userInfo);
    //给用户分配角色
    void assignRole(AssignRoleDto assignRoleDto);
    //删除用户
    Result removeUserByIds(List<Integer> list);
    //修改用户
    Result setUserById(UserInfo userInfo);
    //重置密码
    Result setPwdById(Integer userId);
}
